{minimum_otp_vsn, "21.0"}.

{deps, [
    {getopt, "1.0.1"},
    {typerefl, {git, "https://gitee.com/fastdgiot/typerefl", {tag, "0.9.1"}}}
]}.

{edoc_opts, [{preprocess, true}]}.

{erl_opts, [
    warn_unused_vars,
    warn_shadow_vars,
    warn_unused_import,
    warn_obsolete_guard,
    debug_info
]}.

{xref_checks, [
    undefined_function_calls,
    undefined_functions,
    locals_not_used,
    deprecated_function_calls,
    warnings_as_errors,
    deprecated_functions
]}.

{cover_enabled, true}.
{cover_opts, [verbose]}.
{cover_export_enabled, true}.
{cover_excl_mods, [hocon_parser, hocon_scanner, hocon_cli]}.

{profiles, [
    {test, [
        {deps, [
            {proper, "1.4.0"},
            {cuttlefish, {git, "https://gitee.com/fastdgiot/cuttlefish.git", {tag, "v3.3.5"}}},
            {erlymatch, {git, "https://github.com/zmstone/erlymatch.git", {tag, "1.1.0"}}}
        ]},
        {extra_src_dirs, ["sample-configs", "sample-schemas", "_build/test/lib/cuttlefish/test"]},
        {erl_opts, [{i, "_build/test/lib/cuttlefish/include"}]}
    ]},
    {cuttlefish, [
        {deps, [{cuttlefish, {git, "https://gitee.com/fastdgiot/cuttlefish.git", {tag, "v3.3.4"}}}]},
        {erl_opts, [{d, 'CUTTLEFISH_CONVERTER', true}]}
    ]},
    {es, [
        {post_hooks, [
            {"(linux|darwin|solaris|freebsd|netbsd|openbsd)", escriptize,
                "cp _build/es/bin/hocon ./"},
            {"win32", escriptize, "copy _build\\es\\bin\\hocon ."}
        ]}
    ]}
]}.

{escript_name, hocon}.
{escript_wrappers_windows, ["cmd", "powershell"]}.
{escript_comment, "%% Hocon 0.1.0"}.
{escript_emu_args, "%%! +sbtu +A1\n"}.
{yrl_opts, [verbose, warnings_as_errors]}.
{project_plugins, [erlfmt]}.
